Method: Pod::Version#<=

Defined in:
lib/cocoapods-core/version.rb

#<=(other) ⇒ Boolean

Note:

Attempts to compare something that’s not a Pod::Version return nil

Compares the versions for equality.

Parameters:

  • other (Version)

    The other version to compare.

Returns:

  • (Boolean)

    whether the receiver is less than or equal to other.

[View source]

175
176
177
178
# File 'lib/cocoapods-core/version.rb', line 175

def <=(other)
  comparison = compare_segments(other)
  comparison <= 0
end